﻿import mx.utils.Delegate;
class cn.eminia.ComboClassV1.input {
	var ss;
	var _input;
	function input(input, data, vars) {
		ss = 0;
		this._input = input;
		_input.tf.text = data;
		_input.bg._width = vars.width;
		_input.tf._width = vars.width;
		_input.aa._width = vars.width;
		_input.btn._x = vars.width-_input.btn._width;
		if (vars.css != null) {
			_input.tf.css0 = new TextFormat();
			cn.eminia.AS2.ASCSS.parse(_input.tf.css0, vars.css0);
			_input.tf.setTextFormat(_input.tf.css0);
			// 
			_input.tf.css1 = new TextFormat();
			//_input.tf.autoSize = true;
			cn.eminia.AS2.ASCSS.parse(_input.tf.css1, vars.css1);
		}
	}
	function updateTT(id, old, now) {
		this._input.tf.text = now;
		_input.tf._height =_input.tf.textHeight
		_input.tf.setTextFormat(_input.tf.css1);
	}
}
